//
//  ClassCollectionViewCell.m
//  ThePrivateKitchen
//
//  Created by lirui on 16/1/22.
//  Copyright © 2016年 www.lanou3g.com蓝鸥科技. All rights reserved.
//

#import "ClassCollectionViewCell.h"

@implementation ClassCollectionViewCell

- (void)dealloc
{
    [_name release];
    [super dealloc];
}
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if ( self) {
        self.name = [[ UILabel alloc] init];
        //self.name.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:_name];
        _name.font = [ UIFont systemFontOfSize:15];
        _name.textColor = [UIColor grayColor];
        [_name release];
    }
    return  self;
}
-(void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    _name.frame =CGRectMake(0, 0, layoutAttributes.frame.size.width-20 , HEIGHT*30);
}
@end
